// fetch("http://chst.vip:1234/api/getindexmenu")
//     .then(body => body.json())
//     .then(res => {
//         console.log(res);
//     })
let more = document.querySelector(".more")
let lis = document.querySelectorAll(".lis")
let flag = true
more.onclick = () => {
    if (flag) {
        lis.forEach(item => {
            item.style.display = "none"
            item.style.transform = "all 2s"
        })
        return flag = false
    }
    lis.forEach(item => {
        item.style.display = "block"
    })
    flag = true
}
fetch("http://chst.vip:1234/api/getmoneyctrl")
    .then(body => body.json())
    .then(res => {
        console.log(res);
        let html = "";
        res.result.forEach(item => {
            html += `
        <li>
        <a href="indexXiang.html?productid=${item.productId}">
        <div class="fl">
        ${item.productImg2}
        </div>
        <div class="infoR">
        <div class="title">
            <h4>
            ${item.productName}
                <span>${item.productPinkage}</span>
            </h4>
        </div>
        <div class="other">
            <span class="fl">${item.productFrom}+${item.productTime}</span>
            <em class="fr">
            <i class="icont-ict iconfont"></i>
            <span>${item.productComCount}</span>
            </em>
        </div>
        </div>
        </a>
        </li>
        `
        })
        uu.innerHTML = html;
        console.log(uu);
    })